package com.example.zhunongzonghe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.zhunongzonghe.beans.ZnFarmhouseBean;
import com.example.zhunongzonghe.entity.ZnFarmhouse;

import java.util.List;


public interface IZnFarmhouseService extends IService<ZnFarmhouse> {

    Page<ZnFarmhouse> SearcHouseAll(Integer pageId,Integer pageNum,Object searchInfo);

    List<ZnFarmhouse> SearcHomeHouseAll();

    ZnFarmhouse SearcHouseInfo(Integer houseId);

    ZnFarmhouseBean SearcHouseDetails(Integer houseId);

    /**
     * 已登录用户查看单个农家乐信息
     * @param houseId
     * @return
     */
    ZnFarmhouseBean HouseDetails(Integer houseId, String username);

    /**
     * 未登录用户查看单个农家乐信息
     * @param houseId
     * @return
     */
    ZnFarmhouseBean NotLogHouseDetails(Integer houseId);

    Page<ZnFarmhouse> ZnFarmhousePage(Integer pageId,Integer pageNum);
}
